<!-- include tpl=head_lay -->
<div class="layui-card">
	<div class="layui-card-header ">
		{lang管理员列表}
		<div class="fr">
			<a lay-href="{url ctrl=admin func=set/}" lay-text="{lang添加管理员}" class="layui-btn layui-btn-sm"><i class="layui-icon">&#xe608;</i> {lang添加管理员}</a>
		</div>
	</div>

	<div class="layui-card-body">
		<table class="layui-table">
			<colgroup>
				<col>
				<col>
				<col>
				<col>
				<col width="140">
			</colgroup>
			<thead>
			<tr>
				<th>{langID}</th>
				<th>{lang状态}</th>
				<th>{lang账号}</th>
				<th>{lang邮箱}</th>
				<th>{lang操作}</th>
			</tr>
			</thead>
			<tbody>
			<!-- loop from=$rslist key=$key value=$value -->
			<tr id="admin_tr_{$value.id}">
				<td>{$value.id}</td>
				<td>
					<input type="button" id="status_{$value.id}" value="{if $value.status}{lang启用}{else}{lang停用}{/if}" onclick="$.admin_admin.status({$value.id})" class="layui-btn layui-btn-sm {if !$value.status} layui-btn-danger{/if}" />
				</td>
				<td><div style="padding-left:7px">{$value.account}<!-- if $value.if_system --><span class="red i">{lang（系统管理员）}</span><!-- else --><span class="gray i">{lang（权限管理员）} - {$value.note}</span><!-- /if --></div></td>
				<td><div style="padding-left:7px">{$value.email}</div></td>
				<td width="50">
					<!-- if $popedom.modify -->
					<input type="button" value="{lang编辑}" class="layui-btn layui-btn-sm {if $value.id == $session.admin_id} layui-btn-disabled{/if}" {if $value.id == $session.admin_id} disabled title="你不能编辑自己的信息"{/if} onclick="$.admin_admin.set({$value.id})" />
					<!-- /if -->
					<!-- if $popedom.delete -->
					<input type="button" value="{lang删除}" class="layui-btn layui-btn-sm {if $value.if_system && $value.id == $session.admin_id} layui-btn-disabled{/if}" {if $value.id != $session.admin_id}onclick="$.admin_admin.del('{$value.id}','{$value.account}')"{else}disabled title="你不能删除管理员或自己的信息"{/if} />
					<!-- /if -->
				</td>
			</tr>
			<!-- /loop -->
			</tbody>
		</table>
	</div>

</div>
<!-- include tpl=foot_lay -->